﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Hosting;

namespace _1._3._1_Web_应用程序域
{
    class Program
    {
        static void Main(string[] args)
        {
            //web程序域：认识的不够深刻啊...
            Type hostType = typeof(Intelligencer);
            Intelligencer gencer = ApplicationHost.CreateApplicationHost(
                    hostType,
                    "/",
                    System.Environment.CurrentDirectory
                    )
                    as Intelligencer;
            Console.WriteLine("Current Domain ID: {0}\r\n", AppDomain.CurrentDomain.Id);
            Console.WriteLine(gencer.Report());
            Console.ReadKey();
        }
    }
}
